package com.redhat.auth.domain;

import java.util.List;

import com.dayatang.domain.BaseEntityRepository;

/**
 * @author lingen.liu
 * 帐户仓储
 */
public interface AccountRepository  extends BaseEntityRepository<Account, Long> {
	
	/**
	 * add by vakin.jiang 2010.4.28
	 * 根据角色查询与之关联的所有账户集合
	 * @param fe
	 * @return
	 */
	public List<Account> queryAccountByRole(Role role);
	
	public boolean isEmailExist(String email);
	
	public boolean isUsernameExist(String username);
	
	public Account get(String username);
}
